package server.mapper;

import server.servlet.Servlet;

/**
 * 一个wrapper对应一个servlet
 */
public class MappedWrapper {

    /**
     * web.xml中配置的<url-pattern>/
     */
    private String urlPattern;

    /**
     * web.xml中配置的<servlet-class>实例
     */
    private Servlet servlet;

    public MappedWrapper(String urlPattern, Servlet servlet) {
        this.urlPattern = urlPattern;
        this.servlet = servlet;
    }

    public String getUrlPattern() {
        return urlPattern;
    }

    public void setUrlPattern(String urlPattern) {
        this.urlPattern = urlPattern;
    }

    public Servlet getServlet() {
        return servlet;
    }

    public void setServlet(Servlet servlet) {
        this.servlet = servlet;
    }
}
